#!/usr/bin/env python
import Image
import sys
val = sys.stdin.read(1)
counter = 0
print "%s\t%s" % (ord(val), counter)
while True:
    val = sys.stdin.read(1)
    counter+=1
    if val == "":
        break
    else:
        print "%s\t%s" % (ord(val), counter)
